#ifndef BUYINFORM_H
#define BUYINFORM_H

#include <QWidget>
#include"goods.h"
namespace Ui {
class buyinForm;
}

class buyinForm : public QWidget
{
    Q_OBJECT

public:
    explicit buyinForm(QWidget *parent = nullptr);
    buyinForm(const QString& picPath,const QString& num,const QString&name,
              const double salePrice,const int repetroy,const double buyinPrice,QWidget *parent = nullptr);
    ~buyinForm();
    goods* getItemGoods();
signals:
    void ValueChanged( goods* good);
public slots:
   void sendGoods();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

    void on_amountEdit_textChanged(const QString &arg1);

private:
    Ui::buyinForm *ui;
    goods *itemGoods;
};

#endif // BUYINFORM_H
